package net.neptech.service;
import lombok.RequiredArgsConstructor;
import net.neptech.client.QwenApiClient;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class SummaryService {

    private final QwenApiClient qwenClient;
    private final WebSocketClientService wsClientService;

    public void generateSummary(String conferenceId, String fullTranscript) {
        String prompt = "请生成会议纪要，包含：\n" +
                "1. 主要内容\n" +
                "2. 诊断结论\n" +
                "3. 治疗建议\n" +
                "内容如下：\n" + fullTranscript;

        String summary = qwenClient.callQwen(prompt);
        wsClientService.pushMeetingSummary(conferenceId, summary);
    }
}